SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.option.applet
Class AppletID

java.lang.Object
  extended byjp.co.ricoh.dsdk.scard.option.applet.AppletID
All Implemented Interfaces:
SecurityDomain

public class AppletID
extends java.lang.Object
implements SecurityDomain

This class encapsulates the applet identifier.


Field Summary
protected  byte[] aid
           The applet ID as a byte array.
 
Constructor Summary
AppletID(byte[] array)
           Constructs an AppletID object from a byte array.
AppletID(java.lang.String hexString)
           Constructs an AppletID object from a hexadecimal string.
 
Method Summary
protected  java.lang.Object clone()
           
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 byte[] toBytes()
           Returns the applet ID as a byte array.
 java.lang.String toString()
           Returns the applet ID as a hexadecimal string.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

aid

protected byte[] aid
The applet ID as a byte array.

Constructor Detail

AppletID

public AppletID(byte[] array)
Constructs an AppletID object from a byte array.

Parameters:
array - the AppletID as a byte array.

AppletID

public AppletID(java.lang.String hexString)
Constructs an AppletID object from a hexadecimal string. A zero will be added at the head of the given string if it has an odd length.

Parameters:
hexString - the AppletID as a hexadecimal string.
Method Detail

toBytes

public byte[] toBytes()
Returns the applet ID as a byte array.

Returns:
The applet ID as a byte array.

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
Returns the applet ID as a hexadecimal string.

Returns:
the applet ID as a hexadecimal string.

SDK/J Authentication Package ver1.0
RICOH Confidential